package com.cykj.pos.mapper;

import com.cykj.common.core.domain.AjaxResult;
import com.cykj.pos.domain.SettlementRateTemplate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cykj.pos.domain.ToolCashbackTemplate;
import com.cykj.pos.domain.WithdrawalRateTemplate;

import java.math.BigDecimal;
import java.util.List;

/**
 * 结算模板Mapper接口
 *
 * @author weijianbo
 * @date 2025-01-20
 */
public interface SettlementRateTemplateMapper extends BaseMapper<SettlementRateTemplate> {

    BigDecimal getSettlementCreditRateMinByMerchId(Long merchId);

    BigDecimal getSettlementDebitRateMinByMerchId(Long merchId);

    BigDecimal getSettlementDebitCapMinByMerchId(Long merchId);

    BigDecimal getSettlementCommissionMinByMerchId(Long merchId);

    BigDecimal getSettlementQrCodeRateMinMinByMerchId(Long merchId);

    BigDecimal getSettlementD0MinByMerchId(Long merchId);

    int checkIsThereSnByMerchId(Long merchId);

    List<SettlementRateTemplate> getSettlementRateTemplateByMerchId(Long merchId);

    List<WithdrawalRateTemplate> getWithdrawalTemplateList(WithdrawalRateTemplate withdrawalRateTemplate);

    WithdrawalRateTemplate backWithdrawalTemplateDeatil(WithdrawalRateTemplate withdrawalRateTemplate);

    List<ToolCashbackTemplate> backToolCashbackTemplateList();

    ToolCashbackTemplate backToolCashbackTemplateDetail(ToolCashbackTemplate toolCashbackTemplate);
}
